package com.tangyuan.video.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tangyuan.model.VideoHot;
import com.tangyuan.model.VideoHotPrice;
import com.tangyuan.vo.UserHotNum;
import com.tangyuan.vo.VideoHotPriceVo;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Description: video_hot
 * @Author: jeecg-boot
 * @Date: 2024-03-12
 * @Version: V1.0
 */
@Mapper
public interface VideoHotMapper extends BaseMapper<VideoHot> {


    void addVideoHot(VideoHot videoHot);

    List<UserHotNum> getTime();

    VideoHotPriceVo getPrice(Integer type, Integer num);

    BigDecimal getTruePrice(Integer num);

    BigDecimal getTruePriceByTime(Integer time);

    BigDecimal getTruePriceline(Integer num);

    void deleteByVideoId(Long videoId);

    VideoHot selectByOrderNo(String orderNo);
}
